package com.wangchao.administrator.zenmechi.config;

/**
 * 用于配置网络连接地址以及参数名称
 */

public class UrlConfig {
    /**
     * 用于写最基础的url，主要是用于生产环境和开发环境替换
     */
    public static final String BASE_URL = "http://115.159.227.219:8088/";

    /**
     * 该类用于存储url的后半部分
     */
    public static class Path {
        public static final String CAIPU_ITEM = "fanfou-api/cookbook/cate";
        public static final String CAIPU_LIST = "fanfou-api/cookbook/list/";
        public static final String CAIPU_STEP = "fanfou-api/cookbook/detail/";
        public static final String HOME_MAIN = "fanfou-api/home/main";
        public static final String CAIPU_SEARCH = "fanfou-api/cookbook/search";
        public static final String PRODUCT_SEARCH = "fanfou-api/goods/search";
        public static final String MERCHANT_SEARCH = "fanfou-api/merchant/search";
        public static final String CATEGORY_PATH = "fanfou-api/goods/categories";
        public static final String CATE_LIST = "fanfou-api/goods/list";
        public static final String SPEC_LIST = "fanfou-api/goods/specials";
        public static final String GOODS_DETAIL = "fanfou-api/goods/detail/";
    }

    /**
     * 该类用于存储url的参数的键
     */
    public static class Params {
        public static final String ACCESS_TOKEN = "access_token";
        public static final String SALE_SORT = "sale_sort";
        public static final String CATEGORY_ID = "category_id";
        public static final String NAME = "name";
        public static final String PAGE = "page";
        public static final String PAGE_SIZE = "page_size";
        public static final String MARKET_ID = "market_id";
//        anfou-api/goods/detail/3506?access_token=defaultValue
    }

    /**
     * 该类用于存储一些默认值
     */
    public static class DefaultVaule {
        public static final String ACCESS_TOKEN = "";
        public static final String SALE_SORT = "ASC";
        public static final int CATEGORY_ID = 43;
        public static final int PAGE_NUM = 1;
        public static final int PAGE_SIZE = 10;
        public static final int MARKET_ID = 6;
        public static final String ACCESS_TOKEN_DETAIL = "defaultValue";

    }

}
